﻿using Prism.Services.Dialogs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Wpf.Netdisk.ViewModels.Base;

namespace Wpf.Netdisk.ViewModels.Dialog
{
    /// <summary>
    /// 图片弹出框
    /// </summary>
    public class ImgDialogViewModel: DialogViewModel
    {
        private string imageUrl;

        public string ImageUrl
        {
            get { return imageUrl; }
            set { imageUrl = value;RaisePropertyChanged(); }
        }
        public override string DialogHostName { get; set ; }
        public override void OnDialogOpend(IDialogParameters parameters)
        {
            if (parameters.ContainsKey("ImageUrl"))
            {
                ImageUrl = parameters.GetValue<string>("ImageUrl");
            }
        }
    }
}
